package com.itzsc.eurekamember.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;
import java.util.List;

@RestController
public class MemberController {
    @Value("${server.port}")
    String serverPort;

    @RequestMapping("/getMemberAll")
    public List<String> getMemberAll() {
        return new ArrayList<String>() {{
            add("zhangsan");
            add("lisi");
            add("wangwu");
            add("serverPort:"+serverPort);
        }};
    }


    @RequestMapping("/getMemberServiceApi")
    public String getMemberServiceApi(){
        return "this is member project";
    }
}
